package com.zy.mydemo.view.controller;

import com.zy.mydemo.common.entity.UserEntity;
import org.apache.shiro.SecurityUtils;

/**
 * @Author:zhongyong
 * @Description：
 * @Date：Create in 2020/05/08
 */
public abstract class AbstractController {

    protected UserEntity getUser() {
        return (UserEntity) SecurityUtils.getSubject().getPrincipal();
    }
}
